﻿using System;
using System.Collections.Generic;
//using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IntelligentCMS
{
    /// <summary>
    /// CMSHeader, a basic datalayer-aware control that handles headers.
    /// </summary>
    public partial class CMSHeader : System.Web.UI.UserControl, iCMSControl
    {

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        #region iCMSControl Members

        private bool checkforerrors = false;
        private string name = string.Empty;

        public string Name
        {
            set 
            { 
                name = value;
            }
        }

        public List<string> Errors
        {
            get { return new List<string>(); }
        }

        public string SQLString
        {
            get { return string.Empty; }
        }

        public string LabelText
        {
            set { 
                theLabel.Text = value; 
            }
            
        }

        public System.Web.UI.WebControls.Unit InternalWidth
        {
            set
            {
                theLabel.Width = value;
            }
        }

        public System.Web.UI.WebControls.Unit InternalHeight
        {
            set
            {
                theLabel.Height = value;
            }
        }

        public bool CheckForErrors
        {
            set { checkforerrors = value; }
        }

        public bool HasErrors
        {
            get { return false; }
        }


        #endregion
    }
}